package com.pureut.storage.controller;

import com.sale.common.mybatis.core.page.TableDataInfo;
import com.pureut.storage.domain.PickingSchemeStrategy;
import com.pureut.storage.service.PickingSchemeStrategyService;
import com.sale.common.core.web.controller.BaseController;
import com.sale.common.mybatis.core.page.PageQuery;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/***
 * 拣货策略控制层
 * Author:C
 * Date:2022/12/22 9:57
 * @DESC
 */
@RestController
@RequestMapping("/picking-scheme-strategy")
public class PickingSchemeStrategyController extends BaseController {


    @Resource
    PickingSchemeStrategyService pickingSchemeStrategyService;

    /**
     * 获取拣货策略分页列表
     */
    @GetMapping("/list/{id}")
    public TableDataInfo<PickingSchemeStrategy> getList(@PathVariable("id") Long id, PageQuery pageQuery) {
        //查询拣货方案列表
        return pickingSchemeStrategyService.getStrategyList(id, pageQuery);
    }
}
